#pragma once

#include "CoreMinimal.h"
#include "Data/CommonEnum.h"
#include "CommenStruct.generated.h"

USTRUCT(BlueprintType)
struct MISCELLANEOUSPROJECT_API FSavedGameplayInfo
{
	GENERATED_USTRUCT_BODY()

	UPROPERTY(BlueprintReadWrite,EditAnywhere)
	FString PlayerName;

	UPROPERTY(BlueprintReadWrite, EditAnywhere)
	EGameDifficulty GameDifficulty;

	friend bool operator==(const FSavedGameplayInfo& Elem1, const FSavedGameplayInfo& Elem2);
};

FORCEINLINE bool operator==(const FSavedGameplayInfo& Elem1, const FSavedGameplayInfo& Elem2) {
	return Elem1.PlayerName == Elem2.PlayerName&&Elem1.GameDifficulty == Elem2.GameDifficulty;
}